<?php defined('SYSPATH') or die('No direct script access.');

/**
 * @file post.php
 * @brief 
 * @author Lionel Tsai
 * @version 1.0
 * @date 2012-02-17
 */
class Model_Post extends ORM {
	protected $_table_name = 'posts';
	protected $_primary_key = 'ID';
	protected $_belongs_to = array(
		'users' => array('model'=>'user', 'foreign_key' => 'post_author'),
	);
	protected $_has_many = array(
		'postmeta'=> array('model'=>'postmeta', 'foreign_key'=>'post_id'),
	);

}
